]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Silently add chat source in the MessageTray
authorXavier Claessens <xclaesse@gmail.com>
Thu, 15 Sep 2011 09:27:11 +0000 (11:27 +0200)
committerXavier Claessens <xclaesse@gmail.com>
Mon, 19 Sep 2011 14:19:26 +0000 (16:19 +0200)
We don't want the tray bar to open/close quickly when adding a chat because
it happens when user opens the chat from Empathy. The notification will
popup on incoming message anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=657249

js/ui/messageTray.js

index 6de4b7a53529641636d95156bec16457199aeb80..9476d7aecdfa378b73512a1519416d64730f43eb 100644 (file)
@@ -1495,8 +1495,11 @@ MessageTray.prototype = {
         // after notifications are done showing. However, we don't want that to happen for
         // transient sources, which are removed after the notification is shown, but are
         // not removed fast enough because of the callbacks to avoid the summary popping up.
-        // So we just don't add transient sources to this._newSummaryItems .
-        if (!source.isTransient)
+        // So we just don't add transient sources to this._newSummaryItems.
+        // We don't want that to happen for chat sources neither, because they
+        // can be added when the user starts a chat from Empathy and they are not transient.
+        // The notification will popup on incoming message anyway. See bug #657249.
+        if (!source.isTransient && !source.isChat)
             this._newSummaryItems.push(summaryItem);
 
         source.connect('notify', Lang.bind(this, this._onNotify));